PROMPT 3: FIX AN ERROR
Use in the same chat when InDesign shows an error or the page looks wrong.

The script gave this error in InDesign [e.g. 2026, version 22]:
[paste the exact error text and line number]

Or the page looks wrong in this way: [describe what is wrong, and attach a screenshot]

Fix only this problem. Do not change anything else. Give me the complete corrected script in one code block, and tell me in one line what you changed.
